# coding:utf-8
# @Time      :2022/8/191:15 AM
# @Author    :peiyu
# @FileName  :baseinfo
# @email     :geektime
# @Blog      :https://gitee.com/liupeiyu001/geektime_litemall.git
from dataclasses import dataclass

from litemall.utils.readdata import Data


env = Data.load_yaml('data/env.yaml')
@dataclass
class BaseInfo:
    host=env["environment"]["host"]
    username=env["userinfo"]["username"]
    password=env["userinfo"]["password"]

    # @classmethod
    # def get_host(self):
    #     return self.host
    #
    # @classmethod
    # def get_username(self):
    #     return self.username
    # @classmethod
    # def get_password(self):
    #     return self.password

